package top.lshaci.learning.gateway.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.lshaci.framework.common.model.JsonResponse;

/**
 * ProviderController
 *
 * @author lshaci
 * @date 2020/9/25 11:15
 * @since 1.0.0
 */
@RestController
@RequestMapping("/provider")
public class ProviderController {

    @GetMapping("/get")
    public JsonResponse<String> get(String name) {
        return JsonResponse.success("Hello, " + name);
    }
}
